package com.ddw.meedeeuh.shared.movie.database;

public abstract class DBSubtitleFactory {

	public static DBSubtitle create(int subtitleId, int streamDetailsId,
			String language) {
		return new DBSubtitleImpl(subtitleId, streamDetailsId, language);
	}

	private static class DBSubtitleImpl implements DBSubtitle {

		private final int subtitleId;
		private final int streamDetailsId;
		private final String language;

		public DBSubtitleImpl(int subtitleId, int streamDetailsId,
			String language) {
			this.subtitleId = subtitleId;
			this.streamDetailsId = streamDetailsId;
			this.language = language;
		}

		@Override
		public String getLanguage() {
			return this.language;
		}

		@Override
		public int getSubtitleId() {
			return this.subtitleId;
		}

		@Override
		public int getStreamDetailsId() {
			return this.streamDetailsId;
		}

	}

}
